package com.geh.learn.split;

import java.util.Arrays;
import java.util.List;

/**
 * Created by gehui on 2017/6/2.
 */
public class CSVSplitExample {
    public static void main(String[] args) {

        String alpha = "how, to, do, in java";

        //Remove whitespace and split by comma
        List<String> result = Arrays.asList(alpha.split("\\s*,\\s*"));

        System.out.println(result);
    }
}
